package com.sxygsj.android.personnelscreen.services.accessibilityService;

import android.accessibilityservice.AccessibilityService;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.view.accessibility.AccessibilityEvent;

import com.blankj.utilcode.util.AppUtils;
import com.tencent.mmkv.MMKV;

public class KeyAccessibilityService extends AccessibilityService {
    private MMKV mmkv=MMKV.defaultMMKV();
    @Override
    public void onAccessibilityEvent(AccessibilityEvent accessibilityEvent) {
        if ("com.android.launcher3".equals(accessibilityEvent.getPackageName())){
            AppUtils.launchApp("com.sxygsj.android.personnelscreen");
        }
    }

    @Override
    public void onInterrupt() {

    }
}